﻿using System;
using System.Web.Http;
using Aecg.OwinSelfHostServer.Service.Dto;

namespace Aecg.OwinSelfHostServer.Service.Controllers
{
    [RoutePrefix("Api/Auth")]
    public class AuthController : ApiControllerBase
    {
        /// <summary>
        ///    创建连接token
        /// </summary>
        /// <returns></returns>
        [HttpPost]
        [Route("CreateToken")]
        public AuthResultDto CreateToken([FromBody] string clinetid)
        {
            return new AuthResultDto {Token = Guid.NewGuid().ToString("N")};
        }
    }
}